package fr.aprr.geoloc.server.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import fr.aprr.geoloc.client.service.DtoServices;
import fr.aprr.geoloc.server.dao.GpsDao;
import fr.aprr.geoloc.shared.dto.GpsDto;

@Service("dtoService")
public class DtoServicesImpl extends RemoteServiceServlet implements DtoServices {

	@Autowired
	private GpsDao gpsDao;
	
	
	public List<GpsDto> getDataVehicule() {
		// TODO Auto-generated method stub
//		return gpsDao.getDataVehicule();
		return gpsDao.getAllVehicule();
	}

}
